import API from './api';
import http from '../plugin/http';

const addTag = async (params: { label: string }) => {
    return await http.post(API.TAG_ADD, params)
};

const getTags = async () => {
    return await http.get(API.TAG_GETALL);
};

export default {
    addTag,
    getTags,
}